home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dr. Windows 3
/
dr win3.zip
/
dr win3
/
DEMONSTR
/
MATHVIEW.ZIP
/
FFTSHIFT.M
< prev
next >
Wrap
Text File
|
1993-03-23
|
259b
|
13 lines
function y = fftshift(x)
% y=fftshift(x)
% rotates a 2D array to center the output of the FFT
% S.Halevy 7/31/92
% Copyright (c) 1992 by the MathWizards
[m,n] = size(x);
m1 = m/2;
n1 = n/2;
y=x<>[m1,n1]; % not portable to MATLAB